home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _FileReadToArray.au3 < prev    next >
Text File  |  2006-06-17  |  257b  |  10 lines

  1. #include <file.au3>
  2. Dim $aRecords
  3. If Not _FileReadToArray("error.log",$aRecords) Then
  4.    MsgBox(4096,"Error", " Error reading log to Array     error:" & @error)
  5.    Exit
  6. EndIf
  7. For $x = 1 to $aRecords[0]
  8.     Msgbox(0,'Record:' & $x, $aRecords[$x])
  9. Next
  10.